// 监听输入法开始事件
document.addEventListener('compositionstart', (event) => {
    console.log('Input method composition started');
});

// 监听输入法结束事件
document.addEventListener('compositionend', (event) => {
    console.log('Input method composition ended');
});
